<template>
  <!-- <ul>
    <li v-for="item in htmlSstring" :key="item.t_content_pk">{{item.content}}</li>
  </ul> -->
  <section>
    {{htmlSstring}}
    <button>
      <router-link to="/news/">回到列表页面</router-link>  
    </button>
      
</section>

</template>

<script lang="ts">
import { watch } from "@vue/runtime-core";
import ajax from "@/util/request";
export default {
    data(){
        return{
            htmlSstring:[],
        }
    },
  props: {
    t_content_pk: {
      type: String,
      required: true,
    },
  },
  watch: {
    t_content_pk: {
      handler(newVal){
        ajax("content/queryRow",{t_content_pk: newVal}).then((res) => {
			console.log(res);
			if (res.data.status > 0) {
				this.htmlSstring = res.data.result_data.content
                // console.log(this.htmlSstring);
			}

		})

      },
    },
  },
};
</script>

<style>
</style>